package com.zml.service;

import com.zml.dao.BlogDao;
import com.zml.entity.Blog;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author <a href="mailto:zhaominglin@wxchina.com">minglin.Zhao</a>
 * @Date 2017/10/12
 * @Version 1.0.0
 */
@Service
public class BlogService {

    @Autowired
    private BlogDao blogDao;

    public void addBlog(Blog blog){
        blogDao.addBlog(blog);
    }

    public Blog findById(int id){
        return blogDao.findById(id);
    }
}
